﻿using FreeSql.DataAnnotations;
using Newtonsoft.Json;
using System;

namespace AuthorityCenter.Model
{
    /// <summary>
    /// 通用的用于文本分类模型训练校验的表，表名需要动态调整
    /// </summary>
    [JsonObject(MemberSerialization.OptIn), Table(Name = "commonclassifydatas", DisableSyncStructure = true)]
    public partial class CommonClassifyDatas
    {

        [JsonProperty, Column(Name = "id", IsPrimary = true, IsIdentity = true)]
        public string Id { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        [JsonProperty, Column(Name = "content", StringLength = -2)]
        public string Content { get; set; }

        /// <summary>
        /// 分类搜索到的第一个id
        /// </summary>
        [JsonProperty, Column(Name = "istrain")]
        public int? IsTrain { get; set; } = 0;

        /// <summary>
        /// 标签，多标签以,分割
        /// </summary>
        [JsonProperty, Column(Name = "type", DbType = "varchar(MAX)")]
        public string Type { get; set; }
        /// <summary>
        /// 分类搜索到的第一个id
        /// </summary>
        [JsonProperty, Column(Name = "createtime")]
        public DateTime CreateTime { get; set; } = DateTime.Now;


    }

    /// <summary>
    /// 通用的用于文本分类模型训练校验的表，表名需要动态调整
    /// </summary>
    [JsonObject(MemberSerialization.OptIn), Table(Name = "ccidreleation", DisableSyncStructure = true)]
    public partial class CcidReleation
    {

        [JsonProperty, Column(Name = "ccid", IsPrimary = true, IsIdentity = true)]
        public string Ccid { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [JsonProperty, Column(Name = "ccname", StringLength = -2)]
        public string Ccname { get; set; }
    }

}
